<?php 
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
$path="backupsql";
$dir= opendir($path);
while(($file = readdir($dir))!==false){
	$ten =$path."/".$file;
	if(is_file($ten)==TRUE){
		$mkt=split("_", $file);
		if(isset($mkt[1]) && $mkt[1]==$_SESSION['user']){
			?>
			<a onclick="clickdownload('<?=$file?>');" style="cursor:pointer;color:blue;">
				<b>
	    			<?php echo "Backup : ".$file." [ Download ]";?>
	    		</b>
	    	</a>
	    	<br>
			<?php 
		}
	}
}
closedir($dir);
?>